﻿Selenium.prototype.doSubmitForm = function(formLocator) {
    /**
   * Submit the specified form. This is particularly useful for forms without
   * submit buttons, e.g. single-input "Search" forms.
   *
   * @param formLocator an <a href="#locators">element locator</a> for the form you want to submit
   */
    var form = this.browserbot.findElement(formLocator);
	if(form.wrappedJSObject){
        form = XPCNativeWrapper.unwrap(form);
    }
    return this.browserbot.submit(form);
};

